3.2.68 \(\int \frac {(a+a \cos (x))^{3/2}}{x^2} \, dx\) [168]

Optimal. Leaf size=79 \[ -\frac {2 a \cos ^2\left (\frac {x}{2}\right ) \sqrt {a+a \cos (x)}}{x}-\frac {3}{4} a \sqrt {a+a \cos (x)} \sec \left (\frac {x}{2}\right ) \text {Si}\left (\frac {x}{2}\right )-\frac {3}{4} a \sqrt {a+a \cos (x)} \sec \left (\frac {x}{2}\right ) \text {Si}\left (\frac {3 x}{2}\right ) \]

[Out]

-2*a*cos(1/2*x)^2*(a+a*cos(x))^(1/2)/x-3/4*a*sec(1/2*x)*Si(1/2*x)*(a+a*cos(x))^(1/2)-3/4*a*sec(1/2*x)*Si(3/2*x
)*(a+a*cos(x))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.09, antiderivative size = 79, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {3400, 3394, 3380} \begin {gather*} -\frac {3}{4} a \text {Si}\left (\frac {x}{2}\right ) \sec \left (\frac {x}{2}\right ) \sqrt {a \cos (x)+a}-\frac {3}{4} a \text {Si}\left (\frac {3 x}{2}\right ) \sec \left (\frac {x}{2}\right ) \sqrt {a \cos (x)+a}-\frac {2 a \cos ^2\left (\frac {x}{2}\right ) \sqrt {a \cos (x)+a}}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + a*Cos[x])^(3/2)/x^2,x]

[Out]

(-2*a*Cos[x/2]^2*Sqrt[a + a*Cos[x]])/x - (3*a*Sqrt[a + a*Cos[x]]*Sec[x/2]*SinIntegral[x/2])/4 - (3*a*Sqrt[a +
a*Cos[x]]*Sec[x/2]*SinIntegral[(3*x)/2])/4

Rule 3380

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[SinIntegral[e + f*x]/d, x] /; FreeQ[{c, d,
 e, f}, x] && EqQ[d*e - c*f, 0]

Rule 3394

Int[((c_.) + (d_.)*(x_))^(m_)*sin[(e_.) + (f_.)*(x_)]^(n_), x_Symbol] :> Simp[(c + d*x)^(m + 1)*(Sin[e + f*x]^
n/(d*(m + 1))), x] - Dist[f*(n/(d*(m + 1))), Int[ExpandTrigReduce[(c + d*x)^(m + 1), Cos[e + f*x]*Sin[e + f*x]
^(n - 1), x], x], x] /; FreeQ[{c, d, e, f, m}, x] && IGtQ[n, 1] && GeQ[m, -2] && LtQ[m, -1]

Rule 3400

Int[((c_.) + (d_.)*(x_))^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Dist[(2*a)^IntPart[n]
*((a + b*Sin[e + f*x])^FracPart[n]/Sin[e/2 + a*(Pi/(4*b)) + f*(x/2)]^(2*FracPart[n])), Int[(c + d*x)^m*Sin[e/2
 + a*(Pi/(4*b)) + f*(x/2)]^(2*n), x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && EqQ[a^2 - b^2, 0] && IntegerQ[n
 + 1/2] && (GtQ[n, 0] || IGtQ[m, 0])

Rubi steps

\begin {align*} \int \frac {(a+a \cos (x))^{3/2}}{x^2} \, dx &=\left (2 a \sqrt {a+a \cos (x)} \sec \left (\frac {x}{2}\right )\right ) \int \frac {\cos ^3\left (\frac {x}{2}\right )}{x^2} \, dx\\ &=-\frac {2 a \cos ^2\left (\frac {x}{2}\right ) \sqrt {a+a \cos (x)}}{x}+\left (3 a \sqrt {a+a \cos (x)} \sec \left (\frac {x}{2}\right )\right ) \int \left (-\frac {\sin \left (\frac {x}{2}\right )}{4 x}-\frac {\sin \left (\frac {3 x}{2}\right )}{4 x}\right ) \, dx\\ &=-\frac {2 a \cos ^2\left (\frac {x}{2}\right ) \sqrt {a+a \cos (x)}}{x}-\frac {1}{4} \left (3 a \sqrt {a+a \cos (x)} \sec \left (\frac {x}{2}\right )\right ) \int \frac {\sin \left (\frac {x}{2}\right )}{x} \, dx-\frac {1}{4} \left (3 a \sqrt {a+a \cos (x)} \sec \left (\frac {x}{2}\right )\right ) \int \frac {\sin \left (\frac {3 x}{2}\right )}{x} \, dx\\ &=-\frac {2 a \cos ^2\left (\frac {x}{2}\right ) \sqrt {a+a \cos (x)}}{x}-\frac {3}{4} a \sqrt {a+a \cos (x)} \sec \left (\frac {x}{2}\right ) \text {Si}\left (\frac {x}{2}\right )-\frac {3}{4} a \sqrt {a+a \cos (x)} \sec \left (\frac {x}{2}\right ) \text {Si}\left (\frac {3 x}{2}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.06, size = 53, normalized size = 0.67 \begin {gather*} -\frac {a \sqrt {a (1+\cos (x))} \sec \left (\frac {x}{2}\right ) \left (8 \cos ^3\left (\frac {x}{2}\right )+3 x \text {Si}\left (\frac {x}{2}\right )+3 x \text {Si}\left (\frac {3 x}{2}\right )\right )}{4 x} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + a*Cos[x])^(3/2)/x^2,x]

[Out]

-1/4*(a*Sqrt[a*(1 + Cos[x])]*Sec[x/2]*(8*Cos[x/2]^3 + 3*x*SinIntegral[x/2] + 3*x*SinIntegral[(3*x)/2]))/x

________________________________________________________________________________________

Maple [F]
time = 0.03, size = 0, normalized size = 0.00 \[\int \frac {\left (a +a \cos \left (x \right )\right )^{\frac {3}{2}}}{x^{2}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*cos(x))^(3/2)/x^2,x)

[Out]

int((a+a*cos(x))^(3/2)/x^2,x)

________________________________________________________________________________________

Maxima [C] Result contains complex when optimal does not.
time = 0.59, size = 37, normalized size = 0.47 \begin {gather*} \frac {3}{8} \, \sqrt {2} a^{\frac {3}{2}} {\left (-i \, \Gamma \left (-1, \frac {3}{2} i \, x\right ) - i \, \Gamma \left (-1, \frac {1}{2} i \, x\right ) + i \, \Gamma \left (-1, -\frac {1}{2} i \, x\right ) + i \, \Gamma \left (-1, -\frac {3}{2} i \, x\right )\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*cos(x))^(3/2)/x^2,x, algorithm="maxima")

[Out]

3/8*sqrt(2)*a^(3/2)*(-I*gamma(-1, 3/2*I*x) - I*gamma(-1, 1/2*I*x) + I*gamma(-1, -1/2*I*x) + I*gamma(-1, -3/2*I
*x))

________________________________________________________________________________________

Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*cos(x))^(3/2)/x^2,x, algorithm="fricas")

[Out]

Exception raised: TypeError >>  Error detected within library code:   integrate: implementation incomplete (ha
s polynomial part)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a \left (\cos {\left (x \right )} + 1\right )\right )^{\frac {3}{2}}}{x^{2}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*cos(x))**(3/2)/x**2,x)

[Out]

Integral((a*(cos(x) + 1))**(3/2)/x**2, x)

________________________________________________________________________________________

Giac [A]
time = 0.48, size = 62, normalized size = 0.78 \begin {gather*} -\frac {\sqrt {2} {\left (3 \, a x \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, x\right )\right ) \operatorname {Si}\left (\frac {3}{2} \, x\right ) + 3 \, a x \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, x\right )\right ) \operatorname {Si}\left (\frac {1}{2} \, x\right ) + 2 \, a \cos \left (\frac {3}{2} \, x\right ) \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, x\right )\right ) + 6 \, a \cos \left (\frac {1}{2} \, x\right ) \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, x\right )\right )\right )} \sqrt {a}}{4 \, x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*cos(x))^(3/2)/x^2,x, algorithm="giac")

[Out]

-1/4*sqrt(2)*(3*a*x*sgn(cos(1/2*x))*sin_integral(3/2*x) + 3*a*x*sgn(cos(1/2*x))*sin_integral(1/2*x) + 2*a*cos(
3/2*x)*sgn(cos(1/2*x)) + 6*a*cos(1/2*x)*sgn(cos(1/2*x)))*sqrt(a)/x

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+a\,\cos \left (x\right )\right )}^{3/2}}{x^2} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a*cos(x))^(3/2)/x^2,x)

[Out]

int((a + a*cos(x))^(3/2)/x^2, x)

________________________________________________________________________________________